#ifndef KJHjhdkjhLKJHKJHkjhlk
#define KJHjhdkjhLKJHKJHkjhlk

#include <sys/types.h>
#include <stdio.h>

struct node_struct
{
	struct  node_struct * next;
	char *  data;
    int i_command;
    int i_subject;
};

typedef struct node_struct node_t;

struct que_struct 
{
	int         amount;
	node_t *    list;
};

typedef struct que_struct que_t;

typedef int (*compare_t)(char *, char *);



que_t * 	que_create(void);
int 		que_destroy(que_t *);
node_t * 	node_create(void *);
node_t * 	node_extract(que_t *);
int 		que_add_node(que_t *, node_t *);
int 		que_amount(que_t *);
node_t * 	que_find_node(que_t * q,  char * data, compare_t);
#endif

